home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / shell / xd-2.08 / xd-2 / xd / usr / local / include / NonCanon.h < prev   
Encoding:
C/C++ Source or Header  |  1994-08-14  |  473 b   |  26 lines

  1. #ifndef _NonCanon_H_
  2. #define _NonCanon_H_
  3.  
  4. #include <stdio.h>
  5. #include <unistd.h>
  6. #include <stdlib.h>
  7. #include <termios.h>
  8.  
  9. class NonCanon
  10. {
  11.     public:
  12.     NonCanon(void);        // Constructor
  13.     ~NonCanon();        // Destructor
  14.     
  15.     char get(void) const;    // get the next char
  16.     void echo(void);    // echo characters received
  17.     void noecho(void);    // don't echo chrs
  18.     private:
  19.         struct termios
  20.         saved;
  21.         int
  22.         init,        // setting succeeded: init = 1
  23.         use_echo;    // default 0;
  24. };
  25. #endif
  26.